package com.zero.mxshengadmin.modules.website.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.zero.mxshengadmin.modules.website.entity.WebsiteCompanyInfoEntity;
import org.apache.ibatis.annotations.Mapper;

/**
 * Created by aicaikeji on 2019/4/3.
 */
@Mapper
public interface WebsiteCompanyInfoDao extends BaseMapper<WebsiteCompanyInfoEntity> {
    /**
     * 添加公司信息
     * @param entity
     * @return
     */
    int addCompanyInfo(WebsiteCompanyInfoEntity entity);

    /**
     * 查询公司信息
     * @param entity
     * @return
     */
    WebsiteCompanyInfoEntity findCompanyInfo(WebsiteCompanyInfoEntity entity);

    /**
     * 获取一条信息
     * @return
     */
     WebsiteCompanyInfoEntity getOneItem();

    /**
     * 更新公司信息
     * @param entity
     * @return
     */
    int updateCompanyInfo(WebsiteCompanyInfoEntity entity);

    /**
     * 删除公司信息
     * @param entity
     * @return
     */
    int deleteCompanyInfo(WebsiteCompanyInfoEntity entity);
}
